package com.wetsion.webdubbo.provider;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
 * @CLassName: WebdubboProviderApplication
 * @Author: weixin
 * @Description: TODO
 * @DATE: 2018/12/2 3:02 PM
 * @Version: 1.0
 */
@SpringBootApplication
@DubboComponentScan("com.wetsion.webdubbo.provider.service")
public class WebdubboProviderApplication {
    public static void main(String[] args) {
//        SpringApplication.run(WebdubboProviderApplication.class, args);
        new SpringApplicationBuilder(WebdubboProviderApplication.class)
                .web(WebApplicationType.NONE)
                .run(args);
    }
}
